package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单自动收货配置对象 auto_receive_config
 * 
 * @author ruoyi
 * @date 2025-04-22
 */
public class AutoReceiveConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 自动收货天数 */
    @Excel(name = "自动收货天数")
    private Long receiveDays;

    /** 权重数 */
    @Excel(name = "权重数")
    private Long weight;

    /** 是否启用（1-启用，0-禁用） */
    @Excel(name = "是否启用", readConverterExp = "1=-启用，0-禁用")
    private Integer isActive;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReceiveDays(Long receiveDays) 
    {
        this.receiveDays = receiveDays;
    }

    public Long getReceiveDays() 
    {
        return receiveDays;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }
    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("receiveDays", getReceiveDays())
            .append("weight", getWeight())
            .append("isActive", getIsActive())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
